:root {
    --primary-color: rgba(30, 144, 255, 0.7);
    --primary-hover: rgba(70, 130, 255, 0.8);
    --text-color: rgba(255, 255, 255, 0.9);
    --bubble-min-size: 60px;
    --bubble-max-size: 140px;
    --animation-duration-min: 15s;
    --animation-duration-max: 35s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: none;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: none;
    user-select: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    box-shadow:
        0 0 15px rgba(30, 144, 255, 0.7),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    cursor: pointer;
    user-select: none;
    transition: all 0.4s ease;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(100, 149, 237, 0.4);
    z-index: 1;
}

.bubble:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
    box-shadow:
        0 0 25px rgba(70, 130, 255, 0.9),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.bubble.popped {
    animation: pop 0.5s forwards;
}

@keyframes moveDown {
    0% {
        transform: translateY(-100px) scale(0.75);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(calc(100vh + 100px)) scale(0.25);
        opacity: 0;
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(calc(100vh + 100px)) scale(0.75);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(0.25);
        opacity: 0;
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleEffect 0.6s linear;
    z-index: 2;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}